<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<base href="<?php echo base_url(); ?>" />
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<TITLE> <? echo $title;?> </TITLE>
<LINK href="images/default_1.css" type="text/css" rel=stylesheet>
</HEAD>
<SCRIPT src="js/jquery.min.js" type="text/javascript"></SCRIPT>
<SCRIPT type="text/javascript">
  function getDT(){
      var data_url= '<?php echo site_url("main/time_") ?>';
      $.ajax({  //调用Juqery Ajax    
      type: "POST",
      url: data_url,
      timeout: 1500,
      error: function(){$('#tm').html("<span style='color: #C62E00;font-weight:bold;'> 通信超时</span>");},
      success: function(msg){$('#tm').html(msg);}
});
        }
 function gettime2(){
   var now = new Date();
   var theHour = now.getHours();
   var theMin = now.getMinutes();
   var theSnd=now.getSeconds();
   var theTime="<? echo $userinfo['us_name']; ?>"+"，";
       theTime +=(theHour >= 12) ? "\u4e0b午好！你的登录时间是：" : "上午好！你的登录时间是：";
       theTime += "" + theHour;
       theTime += ((theMin < 10) ? ":0" : ":") + theMin;
       theTime+=((theSnd < 10) ? ":0" : ":")+theSnd;
       window.status = theTime;
  }
  setInterval("getDT()", 1000);
  gettime2();//输出登录时间
</SCRIPT>

<BODY>
<TABLE class=topmenubg cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD width=250 rowSpan=2>
    <DIV class=logo><img src="images/logo2.gif"/></DIV>
    </TD>
   <TD><DIV ><SPAN class=editiontext>当前登录用户：<img src="images/user.gif" title="<? if(isset($userinfo)){echo $userinfo["org1_name"]."-".$userinfo["org2_name"];} ?>"><?if(isset($userinfo)){echo $userinfo["us_name"]."(".$userinfo["org3_name"].")";} ?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前时间：<img src="images/time.gif"  height="16" width="15" title="<? echo '登录时间'.$dates."-". $nowtime;?>"> <span id="tm"><? echo $nowtime; ?></span></SPAN></DIV></TD>
  </TR>
  </TBODY>
</TABLE>
</BODY>
</HTML>